<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'register_main.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />

	<link rel="stylesheet" type="text/css" href="style/style.css">
	<script src="js/jquery-1.8.3.js"></script>
	<script src="js/register.js"></script>

  </head>
  
  <body onload="registerInfCheck();">
  <div><a id="return_mainpage" href="/studormcms/">返回登录页面</a></div>
    <div id="register_div">
    	<div>
    		<div id="nu_pw">
    		<div>学号：<input id="studentNu" class="textbox_re" type="text" ><p id="nuInvalid" class="tips">学号不规范</p></div>
    		<div>密码：<input id="studentPw" class="textbox_re" type="password"><p id="pwInvalid" class="tips">密码不规范</p></div>
    		</div>
    		<div id="other">
    		<div>姓名：<input id="name_r" class="textbox_re" type="text" ><p id="nameInvalid" class="tips">请输入姓名</p></div>
    		<div>性别：<select id="sex" class="select_re">
    			<option>男</option>
    			<option>女</option></select>
    			系别：<select id="department" class="select_re" onchange="loadMajorByDepartment();"></select><p id="deparInvalid" class="tips">请选择系别</p></div>
    		<div>专业：<select id="major" class="select_re" onchange="loadGrade();"></select>
    		年级:<select id="grade" class="select_re"></select><p id="majorGradeInvalid" class="tips">请选择专业</p></div>
    		<div>宿舍：<select id="bd" class="select_re" onchange="loadDormNu('#dormNu', '#bd', false);"></select>
    		<select id="dormNu" class="select_re"></select><p id="dormInvalid" class="tips">请选择宿舍</p></div>
    		<div>手机：<input id="phoneNu" class="textbox_re" type="text"><p id="phoneInvalid" class="tips">请输入正确的手机号</p></div>
    		</div>
    		
    		<input id="registerButton" class="button_blue" name="submit" value="注 册" type="submit" onclick="register();" >
    	</div>
    </div>
  </body>
</html>
